﻿using LinnerToolkit.Desktop.ModernUI.Windows.Controls;
using SimulationPTSystem.ViewModels;
using System.Windows;
using System.Windows.Controls;

namespace SimulationPTSystem.Views
{
    /// <summary>
    /// LoginPage.xaml 的交互逻辑
    /// </summary>
    public partial class LoginPage : NavigationPage
    {
        public LoginPage()
        {
            InitializeComponent();

        }

        private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
        {
            if (sender is PasswordBox passwordBox)
            {
                ((LoginPageViewModel)DataContext).Password = passwordBox.Password;
            }
        }
    }
}
